﻿using MiniExcelLibs;

namespace DongFangGuoKai.WMSPlatform.Commn.ExcelModule
{
    public class ExcelImport
    {
        public const string ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";

        public static MemoryStream GetMemoryStream<Tempate>(List<Tempate> tempates) where Tempate : new()
        {

            var memoryStream = new MemoryStream();
            memoryStream.SaveAs(tempates);
            memoryStream.Seek(0, SeekOrigin.Begin);
            return memoryStream;
        }


    }
}
